#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include <QSqlDatabase>
#include <QMessageBox>
#include <QTimer>

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWidget;
}
QT_END_NAMESPACE

class MainWidget : public QWidget
{
    Q_OBJECT

public:
    MainWidget(QWidget *parent = nullptr);
    ~MainWidget();
    //数据库成员变量
    QSqlDatabase db;
private slots:
    void on_pbPurchaseOrder_clicked();
    //显示主窗口的槽函数
    void showMainWindow();

    void on_pbPurchaseOrderList_clicked();

    void on_pbReceivingForm_clicked();

    void on_pbStockIn_clicked();

    void on_pbStock_clicked();

private:
    Ui::MainWidget *ui;
};
#endif // MAINWIDGET_H
